package org.example.springmvc.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Value("${string.str1}")
    private String hello1;
    @Value("${string.str2}")
    private String hello2;
    @Value("${string.str3}")
    private String hello3;
    @RequestMapping("/getHello")
    public String getHello() {
        System.out.println("str1:" + hello1);
        System.out.println("str2:" + hello2);
        System.out.println("str3:" + hello3);
        return "ok";
    }
}
